-- Please check NvChad docs if you're totally new to nvchad + dont know lua!!
-- This is an example init file in /lua/custom/
-- this init.lua can load stuffs etc too so treat it like your ~/.config/nvim/

-- " 基础使用习惯配置
-- runtime ./vimrc.vim
vim.api.nvim_command('runtime ./vimrc.vim')
-- " 按键映射
-- runtime ./maps.vim
vim.api.nvim_command('runtime ./maps.vim')

-- MAPPINGS
local map = require("core.utils").map

map("n", "<leader>cc", ":Telescope <CR>")
map("n", "<leader>q", ":q <CR>")

map("n", "<leader>ttc", ":<c-u>Translate ZH -source=EN -output=floating<cr>")
map("x", "<leader>ttc", ":Translate ZH -source=EN -output=floating<cr>")
map("n", "<leader>tte", ":<c-u>Translate EN -source=ZH -output=floating<cr>")
map("x", "<leader>tte", ":Translate EN -source=ZH -output=floating<cr>")


-- NOTE: the 4th argument in the map function is be a table i.e options but its most likely un-needed so dont worry about it
--

